import uuid
import libnum
import gmpy2

flag = "flag{" + str(uuid.uuid4()) + "}"
print(flag)
e = 65537
m = libnum.s2n(flag.encode())
p1 = libnum.generate_prime(128)
q1 = libnum.generate_prime(128)
p2 = libnum.generate_prime(128)
q2 = libnum.generate_prime(128)
print("p1=", p1)
print("q1=", q1)
print("p2=", p2)
print("q2=", q2)
n1 = p1 * q1
n2 = p2 * q2
print("n1=", n1)
print("n2=", n2)
c1 = pow(m, e, n1)
c2 = pow(m, e, n2)
print("c1=", c1)
print("c2=", c2)
p1= 181374114466877670648532396603508572553
q1= 247588361882524320257263048684537007431
p2= 250300358872644907496990639170926211271
q2= 311991043797033811345420439880439753801
n1= 44906119888747698345512179582951804775114233952572843592134108434385163641343
n2= 78091470227448637872015323212263779481065170253775069214887468177576951291071
c1= 9866716045905392889073148813979506773491374338489530684028153975324697416911
c2= 55892489777087355045136246189511934204493824253870936685827466467250609643059